var addressList = {
	init:function(){
        this.layuiUse();	
        this.goDeleteAddress();
        this.goEditAddress();
	},
	layuiUse:function(){
		layui.use(['layer', 'form','jquery','flow'], function(){
        var layer = layui.layer,
            form = layui.form,
            $ = layui.$;
        });
    },
    goDeleteAddress:function(){
        $('body').on('click','.goDeleteAddress',function(){
            layui.use('layer', function() {
                var $ = layui.jquery,
                    layer = layui.layer;
                layer.open({
                    type: 1
                    ,title: false //不显示标题栏
                    ,closeBtn: false,
                    shadeClose:true
                    ,area: '300px;'
                    ,shade: 0.8
                    ,id: 'LAY_layuipro' //设定一个id，防止重复弹出
                    ,btn: ['确认', '取消']
                    ,btnAlign: 'c'
                    ,moveType: 1 //拖拽模式，0或者1
                    ,content: '<div class="p20 font16 alignC pt40">是否确认删除？</div>'
                    ,yes: function(index,layero){
                        layer.close(index);
                    }
                });
            });
        });
    },
    goEditAddress:function(){
        $('body').on('click','.goEditAddress',function(){
            window.location.href="/html/person/address.html";
        });
    }
};
addressList.init();

          